﻿function GetGraph(processguid) {
    document.frames("wfmap").location.href = "WF_Graph.aspx?ModelID=" + escape(processguid) + "&ProcType=0";
    ShowGraph(true);
}

function ShowGraph(obj) {
    if (obj == true) {
        document.getElementById("tdmap").style.display = "block";
        document.getElementById("imgmap").src = "/Images/index_arrow_down.gif";
    }
    else {
        if (document.getElementById("tdmap").style.display == "none") {
            document.getElementById("tdmap").style.display = "block";
            document.getElementById("imgmap").src = "/Images/index_arrow_down.gif";
        }
        else {
            document.getElementById("tdmap").style.display = "none";
            document.getElementById("imgmap").src = "/Images/index_arrow_up.gif"
        }
    }
}